package cn.joyfulmedia.dao;

import cn.joyfulmedia.common.util.page.Pagination;
import cn.joyfulmedia.entity.ExamMisDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamMisDictMapper {

    /**
     * 保存
     *
     */
    public Integer saveDict(ExamMisDict entity) throws Exception;

    /**
     * 修改
     *
     */
    public Integer updateDictById(ExamMisDict entity) throws Exception;

    /**
     * 根据ID查找
     *
     * @param id
     * @return
     * @throws Exception
     */
    ExamMisDict selectDictById(Object id) throws Exception;

    List<ExamMisDict> selectByColumn(String column);

    Integer listPageCount(@Param("dict") ExamMisDict dict);

    List<ExamMisDict> listPage(@Param("pagination") Pagination pagination, @Param("dict") ExamMisDict dict);


    int deleteByPrimaryKey(Integer id);

    int insert(ExamMisDict record);

    int insertSelective(ExamMisDict record);

    ExamMisDict selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ExamMisDict record);

    int updateByPrimaryKey(ExamMisDict record);
}